﻿using Console.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Console
{
    class Program
    {
        static void Main(string[] args)
        {
            CodeFirstDbContext db = new CodeFirstDbContext();
            Student stu = new Student("0001", "lyb", 35);
            stu.IDCard = new IDCard(1, DateTime.Now);
            db.Students.Add(stu);
            db.SaveChanges();
            
        }
    }
}
